//Source file: D:\\aaa\\com\\ce\\pms\\renovation\\model\\ReformDO.java

package com.ce.pms.renovation.model;

import java.util.Date;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称: 整改记录 关联数据表:RM_REFORM
 *
 * @author yandawei
 * @CreateDate:2008-12-17
 */
@Entity
@Table(name = "RM_REFORM")
public class ReformDO implements IDomainObject {

	/**
	 *
	 */
	private static final long serialVersionUID = -5119972862892231509L;

	/**
	 * 主键
	 */
	@Id
	@GeneratedValue
	@Column(name = "REFORM_ID")
	private Long keyword;

	/**
	 * 验收人
	 */
	@Column(name = "CHECK_MAN", nullable = false, length = 36)
	private String checkMan;

	/**
	 * 验收日期
	 */
	@Temporal(TemporalType.DATE)
	@Column(name = "CHECK_DATE", nullable = false)
	private Date checkDate;

	/**
	 * 验收结果 001-通过，002-不通过
	 */
	@Column(name = "RESULT", nullable = false, length = 3)
	private String result;

	/**
	 * 备注
	 */
	@Column(name = "REMARK", length = 100)
	private String remark;

	/**
	 * 系统信息
	 */
	@Embedded
	@AttributeOverride(name = "sysDate", column = @Column(name = "SYS_DATE"))
	private SysInfo sysInfo;

	/**
	 * 监管违规
	 */
	@ManyToOne
	@JoinColumn(name = "VIOLATION_ID")
	public RenovateViolationDO renovateViolationDO;

	/**
	 * @roseuid 493F331F005D
	 */
	public ReformDO() {

	}

	public Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}

	public String getCheckMan() {
		return checkMan;
	}

	public void setCheckMan(String checkMan) {
		this.checkMan = checkMan;
	}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public RenovateViolationDO getRenovateViolationDO() {
		return renovateViolationDO;
	}

	public void setRenovateViolationDO(RenovateViolationDO renovateViolationDO) {
		this.renovateViolationDO = renovateViolationDO;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}

}
